*{
    margin: 0;
    padding: 0;
}
body {
    background-color: f5f5f5;
}
.w {
    width: 1200px;
    margin: auto;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}

/* -------------1. 头部区域------------- */
.header {
    height: 42px;
    /* 注意此地方会层叠w里面的margin */
    margin: 30px auto;
}
.logo {
    float: left;
    width: 198px;
    height: 42px;
}

/* 导航栏 */
.nav {
    float: left;
    margin-left: 60px;
}
.nav ul li {
    float: left;
    margin: 0 15px;
}
.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}
.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

/* 搜索模块 */
.search {
    float: left;
    width: 412px;
    height: 42px;
    background-color: skyblue;
    margin-left: 70px;
}
/* 搜索模块文本框 */
.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbf;
    font-size: 14px;
    padding-left: 15px;
}
/* 搜索模块按钮 */
.search button {
    float: left;
    width: 50px;
    height: 42px;
    /* 按钮默认有个边框，需要我们手动去掉 */
    border: 0;
    background-image: url(images/btn.png);
}

/* 头像模块 */
.user {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
}

/* -------------2. banner部分------------- */
.banner {
    height: 420px;
    background-color: #1c036c;
}

/* banner背景 */
.banner .w {
    height: 420px;
    background: url(images/banner.png) no-repeat top center;
}
/* 左侧导航栏 */
.subnav {
    float: left;
    width: 190px;
    height: 420px;
    background-color: rgba(0, 0, 0, .3);
}
.subnav ul li a {
    font-size: 14px;
    color: #fff;
}
.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}
.subnav ul li a span {
    float: right;
}
.subnav ul li a:hover {
    color: #00a4ff;
}

/* 课程表模块 */
.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动的盒子 不会有外边距合并的问题 */
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}
.course .bd {
    padding: 0 20px;
}
.course .bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}
.course .bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}
.course .bd ul li {
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
}
.course .bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
}

/* -------------3. 精品推荐------------- */
.goods {
    height: 60px;
    margin-top: 10px;
    background-color: #fff;
    /* 行高会继承给三个孩子 */
    line-height: 60px;
    box-shadow: 0px 2px 3px 3px rgba(0, 0, 0, .1);
}
.goods h4 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}
.goods ul {
    float: left;
    margin-left: 30px;
}
.goods ul li {
    float: left;
}
.goods ul li a {
    padding: 0px 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #ccc;
}
.goods .mod {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}
